import json
import requests
from pprint import pprint

# with open('yongli.json','r') as f:

#     yongli = json.load(f)

r = requests.get('http://140.143.206.157:5000/api/book_info/?\
url=http://www.x23us.us/39_39642/&host=http://www.x23us.us')

book_info = r.json()


chapter_url = 'http://140.143.206.157:5000/api/chapter/?url=https://www.x23us.us/39_39642/20372005.html&host=http://www.x23us.us'

r = requests.get(chapter_url)

chapter_info = r.json()

if __name__ == '__main__':

    pprint(chapter_info)